//
//  PitchLocatorViewController.h
//  KG
//
//  Created by Eugene Braginets on 14.03.12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>
#define kMapModeButtons [NSArray arrayWithObjects:@"mapModeSimple.png",@"mapModesatellite.png",@"mapModeHybrid.png",nil]
@class Place;
@class bannerView;

@interface PitchLocatorViewController : UIViewController <MKMapViewDelegate, UISearchBarDelegate>
- (IBAction)closeKeyboard:(id)sender;
@property (strong, nonatomic) IBOutlet UIButton *changeMapModeButton;
- (IBAction)changeMapMode:(id)sender;
@property (strong, nonatomic) IBOutlet UITableView *tableView;
@property (strong, nonatomic) IBOutlet UIButton *closeKeyboardButton;
@property (strong, nonatomic) IBOutlet UISearchBar *mySearchBar;

@property (strong, nonatomic) IBOutlet MKMapView *mapView;
@property (strong, nonatomic) IBOutlet UIActivityIndicatorView *activityIndicator;
@property (strong, nonatomic) NSString* searchText;
@property (strong, nonatomic) NSMutableArray* foundItems;
@property (assign, nonatomic) int mapMode;
@property (strong, nonatomic) NSMutableDictionary* index;
@property (strong, nonatomic) NSArray* sortedKeys;

@property (strong, nonatomic) bannerView* bannerViewController;

- (void)zoomToFitMapAnnotations;
- (void)putAnnotations;
- (UIButton *) makeDetailDisclosureButton;
- (void) loadData;
- (void) ListMap;
@end
